package com.example.todolist.model;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.example.todolist.common.AbstractDO;
import com.baomidou.mybatisplus.annotation.TableId;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.*;

import java.util.Date;

/**
 * <p>
 * 
 * </p>
 *
 * @author admin
 * @since 2022-02-25
 */
@Data
@Builder
@AllArgsConstructor
@NoArgsConstructor
@EqualsAndHashCode(callSuper = true)
@ApiModel(value="DynamicComments对象", description="")
public class DynamicComments extends AbstractDO {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    @ApiModelProperty(value = "动态id")
    private String dynamicId;

    @ApiModelProperty(value = "评论id")
    private String commentId;

    @ApiModelProperty(value = "评论内容")
    private String commentContent;

    @ApiModelProperty(value = "评论者id")
    private String commenterId;

    @ApiModelProperty(value = "评论者头像")
    private String commenterAvatarUrl;

    @ApiModelProperty(value = "评论者昵称")
    private String commenterNickname;

    @ApiModelProperty(value = "父级评论id")
    private String parentCommentId;

    @ApiModelProperty(value = "父级评论者用户id")
    private String parentCommenterId;

    @ApiModelProperty(value = "父级评论者头像")
    private String parentCommenterAvatarUrl;

    @ApiModelProperty(value = "父级评论者昵称")
    private String parentCommenterNickname;

    @TableField(exist = false)
    private String passCommentCreateTime;

    @TableField(exist = false)
    private Dynamic dynamic;

    /**
     * 评论能否被删除(默认为0,不能;为1时,可以被删除)
     */
    private int commentCanDelete;

}
